package com.jhgsys.internal.common.controller;

import com.jhgsys.internal.common.entity.FebsConstant;
import com.jhgsys.internal.common.utils.FebsUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author fenghaijun
 */
@Slf4j
@Validated
@Controller
public class CommonBasicViewController extends BaseController{

    @GetMapping(FebsConstant.VIEW_PREFIX + "common/user")
    public String commonUser(){return FebsUtil.view("common/basicUserCommon");}

    @GetMapping(FebsConstant.VIEW_PREFIX + "common/hazardExamineTeam")
    public String commonHazardExamineTeam(){return FebsUtil.view("common/basicHazardExamineTeamCommon");}

    @GetMapping(FebsConstant.VIEW_PREFIX + "common/dept")
    public String commonDept() {
        return FebsUtil.view("common/basicDeptCommon");
    }

    @GetMapping(FebsConstant.VIEW_PREFIX + "common/role")
    public String commonRole() {
        return FebsUtil.view("common/basicRoleCommon");
    }

    @GetMapping(FebsConstant.VIEW_PREFIX + "common/project")
    public String commonProject() {
        return FebsUtil.view("common/basicProjectCommon");
    }

    //百度地图编辑页
    @GetMapping(FebsConstant.VIEW_PREFIX + "common/editMap")
    public String commonEditMap() {
        return FebsUtil.view("common/basicEditMapCommon");
    }

    //百度地图预览页
    @GetMapping(FebsConstant.VIEW_PREFIX + "common/viewMap")
    public String commonViewMap() {
        return FebsUtil.view("common/basicViewMapCommon");
    }

    @GetMapping(FebsConstant.VIEW_PREFIX + "common/goods")
    public String commonGoods() {
        return FebsUtil.view("common/basicGoodsCommon");
    }

    @GetMapping(FebsConstant.VIEW_PREFIX + "common/contractor")
    public String commonContractor() {
        return FebsUtil.view("common/basicContractorCommon");
    }

    @GetMapping(FebsConstant.VIEW_PREFIX + "common/accidentSurveyTeam")
    public String commonAccidentSurveyTeam(){
        return FebsUtil.view("common/basicAccidentSurveyTeamCommon");
    }

    @GetMapping(FebsConstant.VIEW_PREFIX + "common/hazardType")
    public String commonHazardType(){
        return FebsUtil.view("common/basicHazardTypeCommon");
    }
}
